package com.tanxi521.springboot.service;

import com.tanxi521.springboot.bean.NewRewardBean;
import com.tanxi521.springboot.bean.RewardBean;
import com.tanxi521.springboot.pojo.RewardCard;
import com.tanxi521.springboot.pojo.Rewards;

import java.util.List;

public interface RewardsService {
    List<Rewards> queryListByRewards(Integer pageIndex, Integer pageSize, Rewards rewards);

    int queryRewardsCountByRewards(Rewards rewards);

    int updateRewardStateById(Rewards rewards);

    int addNewRewards(NewRewardBean rewardBean, String username);

    Rewards selectByPrimaryKey(Rewards rewards);

    List<RewardCard> queryUserRewards(String userName);

    int giveUserRewards(RewardCard rewardCard, String userName);

    int deleteById(List<Integer> ids);
}
